{% extends "index.html" %}
{% load stu_tags %}
{% block page-content %}
    <h3></h3>
<div class="panel panel-default">
<!-- Default panel contents -->
    <div class="panel-heading">{{ enroll_obj.enrolled_class }}</div>
    <div class="panel-body">
        <table class="table table-striped table-responsive">
            <thead>
                <tr>
                    <th>课程（节）</th>
                    <th>上课时间</th>
                    <th>是否有作业</th>
                    <th>作业标题</th>
                    <th>签到状态</th>
                    <th>我的成绩</th>
                    <th>作业详情</th>
                </tr>
            </thead>
            <tbody>
                {% for studyrecord in enroll_obj.studyrecord_set.all %}
                <tr>
                    <td>{{ studyrecord.course_record.day_num }}</td>
                    <td>{{ studyrecord.course_record.date }}</td>
                    <td>{{ studyrecord.course_record.has_homework }}</td>
                    <td>{{ studyrecord.course_record.homework_title }}</td>
                    <td>{{ studyrecord.get_attendance_display }}</td>
                    <td>{{ studyrecord.get_score_display }}</td>
                    <td><a href="{% url 'homework_detail' studyrecord.id %}">作业详情</a></td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>
{% endblock %}















